﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BBSite.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="OAclient.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    个人帖子
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%var myCards = ViewData["myCards"] as List<CommonLibrary.DataModel.BBS.InitCardEntity>; %>
    <%if (myCards != null)
      { %>
    <div id="myCards">
        <table>
            <%foreach (var card in myCards)
              { %>
            <tbody>
                <tr>
                    <th>
                        <%=Html.ActionLink(card.CardTitle, "CheckCard", new { inCardId = card.CardId, page =1})%>
                        <%=Html.ActionLink("删除", "DelInitCard", new { inCardId = card.CardId})%>
                    </th>
                    <td>
                        <%=card.User.name %>
                    </td>
                    <td>
                        <%=card.ReplyCount %>
                    </td>
                    <td>
                        <%=card.InitTime %>
                    </td>
                </tr>
            </tbody>
            <%} %>
        </table>
    </div>
    <%} %>
    <div id="pager">
        <%var pageInfo = ViewData["pageInfo"] as PagingInfo; %>
        <%if (pageInfo != null)
          { %>
        <%=Html.PageLinks(pageInfo, index => Url.Action("GetMyCards", new { page = index }))%>
        <%} %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FootContent" runat="server">
</asp:Content>
